package service;

import java.io.File;
import java.util.Date;
import java.util.List;

import pojo.Address;
import pojo.Catalog;
import pojo.Collect;
import pojo.Good;
import pojo.Photo;
import pojo.User;
import util.FileOperation;
import util.PageBean;
import dao.AddressDAO;
import dao.CatalogDAO;
import dao.CollectDAO;
import dao.GoodDAO;
import dao.PhotoDAO;
import dao.UserDAO;

public class CatalogService {

	private CatalogDAO catalogDAO=new CatalogDAO();
	

	public Catalog findCatalogById(int id)
	{
		return catalogDAO.findById(id);
	}
	public List<Catalog> findAllListCatalogs()
	{
		return catalogDAO.findAll();
	}
	
	public void setCatalogDAO(CatalogDAO catalogDAO) {
		this.catalogDAO = catalogDAO;
	}
	public CatalogDAO getCatalogDAO() {
		return catalogDAO;
	}
}
